{% load plan_extras %}
    {% for course in results %}
    <tr class="{% cycle 'rowOne' 'rowTwo' %}" id="course-{{ course.id }}">
        <td>{{ course.short_form }} <a href="{% ugrad_calendar_link course.department course.course_code %}" target="_blank"><img src="{{ MEDIA_URL}}img/icons/help.png" alt="More information about this course"/></a></td>
        <td>{{ course.full_name }}</td>
        <td>{{ course.te_math }}</td>
        <td>{{ course.te_sci }}</td>
        <td>{{ course.te_engsci }}</td>
        <td>{{ course.te_engdes }}</td>
        <td>{{ course.cse }}</td>
        <td width="80"><img class="add" src="{{ MEDIA_URL}}img/icons/add.png" />
            <img class="loading" style="display:none" src="{{ MEDIA_URL}}img/ajax-loader.gif" />
            <img class="done" style="display:none" src="{{ MEDIA_URL}}img/icons/accept.png" />
            <form id="QuickAdd" action="{% url planned_courses_index plan.id %}" method="POST">
                <select name="term">
                    <option value="">--</option>
                    <option value="1">1A</option>
                    <option value="2">1B</option>
                    <option value="3">2A</option>
                    <option value="4">2B</option>
                    <option value="5">3A</option>
                    <option value="6">3B</option>
                    <option value="7">4A</option>
                    <option value="8">4B</option>
                </select>
                <input type="hidden" class="course_id" name="course" value="{{ course.id }}"/>
                <input type="hidden" class="plan_id" name="plan" value="{{ plan.id }}"/>
            </form>
            <span id="term-{{ course.id }}"></span>
        </td>
    </tr>
    {% endfor %}
